package com.qst.entity;

import java.util.Date;

public class Schedule extends BaseEntity{
    private String beginDate;
    private String endDate;
    private int duration;
    private int status;
    private int assessmentId;
    private int teamId;
    private int creatorId;
    private Date createDate;
    private Team team;
    private User creator;
    private AssessmentType assessmentType;
    private int questionNumber;

    public Schedule() {
    }

    public Schedule(String beginDate, String endDate, int duration, int status, int assessmentId, int teamId, int creatorId, Date createDate, Team team, User creator, AssessmentType assessmentType, int questionNumber) {
        this.beginDate = beginDate;
        this.endDate = endDate;
        this.duration = duration;
        this.status = status;
        this.assessmentId = assessmentId;
        this.teamId = teamId;
        this.creatorId = creatorId;
        this.createDate = createDate;
        this.team = team;
        this.creator = creator;
        this.assessmentType = assessmentType;
        this.questionNumber = questionNumber;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getAssessmentId() {
        return assessmentId;
    }

    public void setAssessmentId(int assessmentId) {
        this.assessmentId = assessmentId;
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        this.teamId = teamId;
    }

    public int getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(int creatorId) {
        this.creatorId = creatorId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Team getTeam() {
        return team;
    }

    public void setTeam(Team team) {
        this.team = team;
    }

    public User getCreator() {
        return creator;
    }

    public void setCreator(User creator) {
        this.creator = creator;
    }

    public AssessmentType getAssessmentType() {
        return assessmentType;
    }

    public void setAssessmentType(AssessmentType assessmentType) {
        this.assessmentType = assessmentType;
    }

    public int getQuestionNumber() {
        return questionNumber;
    }

    public void setQuestionNumber(int questionNumber) {
        this.questionNumber = questionNumber;
    }

    static {
        addDesc(Schedule.class, "s0", "作废", "s1", "未考", "s2", "考试中", "s3", "已结束");

    }

    public String getStatusDesc() {
        return getDesc(Schedule.class, "s", status);
    }
}
